.class Lcom/waiqin365/lightapp/visit/fg;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/fg;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/fg;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;->b(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->getHeaderViewsCount()I

    move-result v0

    sub-int v0, p3, v0

    if-gez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/fg;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;->c(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;)Lcom/waiqin365/lightapp/visit/b/be;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/visit/b/be;->a(I)Lcom/waiqin365/lightapp/visit/b/bd;

    move-result-object v0

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/fg;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;->d(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "seniorVisitInfo"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v0, "from"

    const-string/jumbo v2, "seniorVisitRecord"

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "editable"

    const/4 v2, 0x0

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "canViewCM"

    const/4 v2, 0x1

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/fg;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/fg;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;->overridePendingTransition(II)V

    goto :goto_0
.end method
